Do sentiment analysis with NLTK

User enters text and script returns sentiment analysis using NLTK

Script nltk

by henri186 ยท 2/24/2023

Other submissions
  • Submitted by huynhthanhtien1711644 Bun
    Created 356 days ago
    1
    // import * as wmill from 'windmill-client'
    2
    
    
    3
    export async function main(x: string) {
    4
      return x
    5
    }
  • Submitted by henri186 Python3
    Created 1019 days ago
    1
    #import wmill
    2
    import nltk
    3
    from nltk.sentiment import SentimentIntensityAnalyzer
    4
    nltk.download("vader_lexicon")
    5
    
    
    6
    def main(text: str = "Wow, NLTK is really powerful!"):
    7
        return SentimentIntensityAnalyzer().polarity_scores(text)